home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / FROMUTS / UNIXLIB37B / test / c / allocatest next >
Text File  |  1992-02-10  |  243b  |  22 lines

  1. #include <stdlib.h>
  2. #include <time.h>
  3. #include <stdio.h>
  4.  
  5. #include "alloca.h"
  6.  
  7. #define ASIZE 2048
  8.  
  9. int main()
  10. {
  11. int *b;
  12. register int i;
  13.  
  14. srand(time(0));
  15.  
  16. b = alloca(ASIZE);
  17.  
  18. for (i = 0; i < (ASIZE>>2); i++) b[i] = rand();
  19.  
  20. printf("%x\n",b);
  21. }
  22.